package com.ssm.zhihu_ssm.dao;

import com.ssm.zhihu_ssm.entity.Comment;
import com.ssm.zhihu_ssm.entity.CommentReturn;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentDao {
    List<CommentReturn> getComment(int id ,int state); //得到某个问题所有的评论
    Comment findGOODnum(int id );
    void addAgoodNum(Comment comment); //评论点赞

    void insertComment(Comment comment);
}
